'''
Created on Apr 5, 2016

@author: JimmyMo
'''
import threading
import inspect
class Writter(threading.Thread):
    def __init__(self, queue, raw_options):
        super().__init__(name="t_writter")
        self._parse_options(raw_options)
        self.data = queue
        pass
    def _parse_options(self, raw_options):
        '''abstract method'''
        class_name = self.__class__.__name__
        method_name = inspect.stack()[0][3]
        raise Exception("%s method in class %s is abstract method which is not implemented..." % (method_name, class_name))
    def run(self):
        '''abstract method'''
        class_name = self.__class__.__name__
        method_name = inspect.stack()[0][3]
        raise Exception("%s method in class %s is abstract method which is not implemented..." % (method_name, class_name))